package com.liu.susu.controller.asny.asny1;

import com.liu.susu.thread.task.async.async1.AsyncTask1;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @FileName AsyncTaskController
 * @Description
 * @Author susu
 * @date 2022-03-09
 **/
@Controller
@RequestMapping
@Slf4j
public class AsyncTaskController1 {

    @Autowired
    private AsyncTask1 asyncTask1;

    @ResponseBody
    @RequestMapping("/async1")
    public String doMyAllTaskTest() {

        log.info("=====doMyAllTaskTest=====");

        asyncTask1.doMyAllTask();

        return "ok";
    }

}
